.class Lcom/example/zsccpsapp/MainActivity$16;
.super Ljava/lang/Object;
.source "MainActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/zsccpsapp/MainActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/zsccpsapp/MainActivity;


# direct methods
.method constructor <init>(Lcom/example/zsccpsapp/MainActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/zsccpsapp/MainActivity$16;->this$0:Lcom/example/zsccpsapp/MainActivity;

    .line 1479
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 6
    .param p1, "dialog"    # Landroid/content/DialogInterface;
    .param p2, "whichButton"    # I

    .prologue
    .line 1482
    iget-object v3, p0, Lcom/example/zsccpsapp/MainActivity$16;->this$0:Lcom/example/zsccpsapp/MainActivity;

    # getter for: Lcom/example/zsccpsapp/MainActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/zsccpsapp/MainActivity;->access$0(Lcom/example/zsccpsapp/MainActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u53d6\u6d88\u901a\u77e5\u670d\u52a1"

    .line 1483
    const-string v5, "\u7b49\u5f85\u9000\u51fa"

    .line 1482
    invoke-static {v3, v4, v5}, Lmyapp/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1484
    iget-object v3, p0, Lcom/example/zsccpsapp/MainActivity$16;->this$0:Lcom/example/zsccpsapp/MainActivity;

    # getter for: Lcom/example/zsccpsapp/MainActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/zsccpsapp/MainActivity;->access$0(Lcom/example/zsccpsapp/MainActivity;)Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/tencent/android/tpush/XGPushManager;->unregisterPush(Landroid/content/Context;)V

    .line 1485
    iget-object v3, p0, Lcom/example/zsccpsapp/MainActivity$16;->this$0:Lcom/example/zsccpsapp/MainActivity;

    .line 1486
    const-string v4, "userInfo"

    const/4 v5, 0x0

    .line 1485
    invoke-virtual {v3, v4, v5}, Lcom/example/zsccpsapp/MainActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 1489
    .local v2, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    const-string v4, "login"

    iget-object v5, p0, Lcom/example/zsccpsapp/MainActivity$16;->this$0:Lcom/example/zsccpsapp/MainActivity;

    # getter for: Lcom/example/zsccpsapp/MainActivity;->login:Ljava/lang/String;
    invoke-static {v5}, Lcom/example/zsccpsapp/MainActivity;->access$7(Lcom/example/zsccpsapp/MainActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1491
    iget-object v3, p0, Lcom/example/zsccpsapp/MainActivity$16;->this$0:Lcom/example/zsccpsapp/MainActivity;

    invoke-virtual {v3}, Lcom/example/zsccpsapp/MainActivity;->getApplication()Landroid/app/Application;

    move-result-object v3

    check-cast v3, Lmyapp/MyApp;

    .line 1492
    invoke-virtual {v3}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    .line 1493
    .local v1, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_1

    .line 1494
    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_0
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_2

    .line 1502
    :cond_1
    return-void

    .line 1494
    :cond_2
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    .line 1495
    .local v0, "activity":Landroid/app/Activity;
    if-eqz v0, :cond_0

    .line 1496
    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    goto :goto_0
.end method
